/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: DuKe TeAm
 * License Type: Purchased
 */
package orm;

import org.hibernate.Criteria;
import org.orm.PersistentException;
import org.orm.PersistentSession;
import org.orm.criteria.*;

public class ComunaCriteria extends AbstractORMCriteria {
	public final IntegerExpression co_id;
	public final StringExpression co_nombreprovincia;
	
	public ComunaCriteria(Criteria criteria) {
		super(criteria);
		co_id = new IntegerExpression("co_id", this);
		co_nombreprovincia = new StringExpression("co_nombreprovincia", this);
	}
	
	public ComunaCriteria(PersistentSession session) {
		this(session.createCriteria(Comuna.class));
	}
	
	public ComunaCriteria() throws PersistentException {
		this(orm.EvaluacionDocentePersistentManager.instance().getSession());
	}
	
	public RegionCriteria createRegionre_numeroregionCriteria() {
		return new RegionCriteria(createCriteria("regionre_numeroregion"));
	}
	
	public Comuna uniqueComuna() {
		return (Comuna) super.uniqueResult();
	}
	
	public Comuna[] listComuna() {
		java.util.List list = super.list();
		return (Comuna[]) list.toArray(new Comuna[list.size()]);
	}
}

